]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
altTab: Always activate MRU window when activating an app
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 15 May 2013 06:37:12 +0000 (08:37 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 15 May 2013 10:12:35 +0000 (12:12 +0200)
Commit 2499f2ed80 went back to using shell_app_activate() for
selecting an app, which favors windows on the current workspace;
this is the behavior we want for instance when activating a
launcher, but it's wrong for the alt-tab list - explicitly
request the first (e.g. MRU) window in that case.

https://bugzilla.gnome.org/show_bug.cgi?id=700356

js/ui/altTab.js

index 435e66f5e788e4673ad7902fefce0b6611b24ca5..34d83e4cf02927501832b9e7569cb52a73fba01a 100644 (file)
@@ -234,7 +234,7 @@ const AppSwitcherPopup = new Lang.Class({
     _finish : function(timestamp) {
         let appIcon = this._items[this._selectedIndex];
         if (this._currentWindow < 0)
-            appIcon.app.activate_full(-1, timestamp);
+            appIcon.app.activate_window(appIcon.cachedWindows[0], timestamp);
         else
             Main.activateWindow(appIcon.cachedWindows[this._currentWindow], timestamp);